package com.hmall.api.client;

import com.hmall.api.fallback.CartClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;


/**
 * 向cart-service发送远程调用请求
 * @author xiaopeng
 * @version 1.0
 */
@FeignClient(name = "cart-service",fallbackFactory = CartClientFallbackFactory.class)
public interface CartClient {
    @DeleteMapping("/carts")
    void removeByItemIds(@RequestParam("ids") Collection<Long> ids);
}
